-- GENERATED SPELL FOR [Earthen Stoneguard] --


function spell0_29960(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29960', 5347, 1)
end

function spell1_29960(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29960', 583, 1)
end

function Sorts_29960(pUnit, Event)
local choix_sorts_29960 = math.random(0, 1)
if choix_sorts_29960 == 0 then
pUnit:RegisterEvent('spell0_29960', 1, 1)
end
if choix_sorts_29960 == 1 then
pUnit:RegisterEvent('spell1_29960', 1, 1)
end
end

function mob29960_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29960', math.random(1500, 3000), 1)
end

function mob29960_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29960_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29960_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29960, 1, 'mob29960_Action')
RegisterUnitEvent(29960, 2, 'mob29960_Leave')
RegisterUnitEvent(29960, 3, 'mob29960_Kill')
RegisterUnitEvent(29960, 4, 'mob29960_Die')
